package ru.sgu.codecenter.fidx.model;

import java.util.List;

public interface Engine {
    List<FileDocument> findByFilePath(String path);
    List<FileDocument> findByFileName(String name);
    List<FileDocument> findByFilePathPrefix(String name);
    List<FileDocument> findBySha1(String query);

    List<FileDocument> findByContentSubstring(String substring);
    List<FileDocument> findByContentQuery(String query);

    void insert(FileDocument fileDocument);
    void delete(FileDocument fileDocument);

    void close();
}
